<!DOCTYPE html>
{% load i18n %}
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="shortcut icon" type="image/png" href="/static/favicon.ico"/>
    <link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
    {% include 'show/link.html'%}
    <title>{% trans '充值存款' %}</title>
    <style>
        .panel {
            border-radius: 0px;
            border:1px solid #f1f1f1
        }
        .panel-heading {
            border-radius: 0px;
        }
    </style>
    <script>
        $(document).ready(function() {
        })
    </script>
</head>
<body>

{% include 'show/top_bar.html' %}
<div class="main_body">
    <br>
    <br>
    <div class="pushAd container">
        <div class="panel panel-bm ">
            <div class="panel-heading">
                <div class="panel-heading-title">
                    <h2>创建一个广告 </h2>
                </div>
            </div>
            <div class="panel-body row">
                <div class="col-md-offset-1 col-md-9">
                    <div class="alert alert-warning alert-dismissible" role="alert">
                        <p>如果您经常进行交易，您可以创建自己的交易广告。如果您只是偶尔交易，我们建议您直接搜索<a href="/trade/list.html">交易广告</a></p>
                        <p>创建一则交易广告是<a href="/c2c/ad.html">免费的</a></p>
                        <p>若您想直接编辑已创建的广告，请查看 <a href="/c2c/my_list.html">我的广告</a></p>
                    </div>
                </div>

                <div class="col-md-8">
                    <form class="form-horizontal" id="defaultForm" action="/c2c/submit" method="post">
                        <div class="form-group">
                            <label class="col-md-3 control-label"><em class="require-red">*</em>我想要</label>
                            <div class="col-md-8 ">
                                <div class="input-group">
                                    <div class="checkbox">
                                        <label class="red"><input type="radio" name="order_type" value="0">在线出售</label>
                                        <label class="green"><input type="radio" name="order_type" value="1">在线购买</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label"><em class="require-red">*</em>交易币种</label>
                            <div class="col-md-8">
                                <select class="form-control input-control" name="coinId" id="coin_select">
                                    <option value="1">USDT</option>
                                    <option value="2">BTC</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label"><em class="require-red">*</em>货币</label>
                            <div class="col-md-8">
                                <select class="form-control input-control" name="currency" id="currency_select">
                                    <option value="CNY">人民币</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" id="div_fixedPrice">
                            <label for="fixedPrice" class="col-md-3 control-label">
                                <em class="require-red">*</em>交易价格
                            </label>
                            <div class="col-md-8 ">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="fixedPrice"
                                           id="fixedPrice" placeholder="请输入您的交易价格" value="">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="payTerm" class="col-md-3 control-label">
                                <em class="require-red">*</em>付款期限
                            </label>
                            <div class="col-md-8 ">
                                <div class="input-group">
                                    <input type="text" class="form-control input-control"
                                           name="payTerm" id="payTerm" placeholder="请输入30-180之间的整数" value="90"
                                           onkeypress="return util.isNum(event)" oninput="util.clearNoNum(this,2)" autocomplete="new-password">
                                    <div class="input-group-addon">分钟</div>
                                </div>
                            </div>
                        </div>
                        <p class="col-md-offset-3 priceSell font-gray">要求对方在多少时间内完成支付，超时未支付的订单将被系统自动取消。</p>
                        <div class="form-group">
                            <label for="payMethod" class="col-md-3 control-label">
                                <em class="require-red">*</em>付款方式
                            </label>
                            <div class="col-md-8">
                                <label class="checkbox-inline">
                                    <input type="checkbox" id="alipay" value="alipay">支付宝
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" id="wechat" value="wechat">微信
                                </label>
                                <label class="checkbox-inline">
                                    <input type="checkbox" id="bank" value="bank">支付宝
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="minTradeLimit" class="col-md-3 control-label"><em class="require-red">*</em>最小交易额</label>
                            <div class="col-md-8 ">
                                <div class="input-group">
                                    <input type="text" class="form-control input-control" name="minTradeLimit"
                                           id="minTradeLimit" placeholder="每一笔交易的最低限额" value=""
                                           onkeypress="return util.isNum(event)" oninput="util.clearNoNum(this,2)" autocomplete="new-password">
                                    <div class="input-group-addon"><span class="chooseCurrency"></span></div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="maxTradeLimit" class="col-md-3 control-label"><em class="require-red">*</em>最大交易额</label>
                            <div class="col-md-8 ">
                                <div class="input-group">
                                    <input type="text" class="form-control input-control" name="maxTradeLimit"
                                           id="maxTradeLimit" placeholder="每一笔交易的最大限额" value=""
                                           onkeypress="return util.isNum(event)" oninput="util.clearNoNum(this,2)" autocomplete="new-password">
                                    <div class="input-group-addon"><span class="chooseCurrency"></span></div>
                                </div>
                            </div>
                            <label for="maxTradeLimit" class="col-md-3 control-label"></label>
                            <div class="col-md-8 input-group">
                                <p class="font-gray">
                                    您账户中该币种的可用余额会限制您的最大交易额
                                </p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="tradeRule" class="col-md-3 control-label">备注信息</label>
                            <div class="col-md-8">
                                        <textarea class="form-control textarea-control" id="tradeRule" rows="5" name="tradeRule"
                                                  placeholder="可以内备注信息里填写您的特殊要求，例如：对买方的要求，在线时间等。" autocomplete="new-password"></textarea>
                            </div>
                        </div>
                        <div class="form-group" id="div_autoReplyContent">
                            <label for="autoReplyContent" class="col-md-3 control-label">自动回复</label>
                            <div class="col-md-8">
                                        <textarea class="form-control textarea-control" name="autoReplyContent"
                                                  id="autoReplyContent" rows="5"
                                                  placeholder="在接收订单后，自动回复给买家的信息，例如：收款方式、收款账号等。" autocomplete="new-password"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-8">
                                <input name="id" type="hidden" value=""/>
                                <button type="submit" id="orderCreate" class="btn btn-danger btn-pink col-md-12">
                                    发布广告
                                </button>
                            </div>
                        </div>
                        <input type="hidden" id="MaxPremium" value="0.1"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% include 'show/footer.html' %}
</body>
</html>
